//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.carhailing.system.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(
        prefix = "re.oss"
)
public class ThreadPoolConfig {
    private Integer corePoolSize;
    private Integer maximumPoolSize;
    private Integer keepAliveTime;

    public ThreadPoolConfig() {
    }

    public Integer getCorePoolSize() {
        return this.corePoolSize;
    }

    public Integer getMaximumPoolSize() {
        return this.maximumPoolSize;
    }

    public Integer getKeepAliveTime() {
        return this.keepAliveTime;
    }

    public void setCorePoolSize(final Integer corePoolSize) {
        this.corePoolSize = corePoolSize;
    }

    public void setMaximumPoolSize(final Integer maximumPoolSize) {
        this.maximumPoolSize = maximumPoolSize;
    }

    public void setKeepAliveTime(final Integer keepAliveTime) {
        this.keepAliveTime = keepAliveTime;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof ThreadPoolConfig)) {
            return false;
        } else {
            ThreadPoolConfig other = (ThreadPoolConfig)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label47: {
                    Object this$corePoolSize = this.getCorePoolSize();
                    Object other$corePoolSize = other.getCorePoolSize();
                    if (this$corePoolSize == null) {
                        if (other$corePoolSize == null) {
                            break label47;
                        }
                    } else if (this$corePoolSize.equals(other$corePoolSize)) {
                        break label47;
                    }

                    return false;
                }

                Object this$maximumPoolSize = this.getMaximumPoolSize();
                Object other$maximumPoolSize = other.getMaximumPoolSize();
                if (this$maximumPoolSize == null) {
                    if (other$maximumPoolSize != null) {
                        return false;
                    }
                } else if (!this$maximumPoolSize.equals(other$maximumPoolSize)) {
                    return false;
                }

                Object this$keepAliveTime = this.getKeepAliveTime();
                Object other$keepAliveTime = other.getKeepAliveTime();
                if (this$keepAliveTime == null) {
                    if (other$keepAliveTime != null) {
                        return false;
                    }
                } else if (!this$keepAliveTime.equals(other$keepAliveTime)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof ThreadPoolConfig;
    }

    public int hashCode() {

        int result = 1;
        Object $corePoolSize = this.getCorePoolSize();
        result = result * 59 + ($corePoolSize == null ? 43 : $corePoolSize.hashCode());
        Object $maximumPoolSize = this.getMaximumPoolSize();
        result = result * 59 + ($maximumPoolSize == null ? 43 : $maximumPoolSize.hashCode());
        Object $keepAliveTime = this.getKeepAliveTime();
        result = result * 59 + ($keepAliveTime == null ? 43 : $keepAliveTime.hashCode());
        return result;
    }

    public String toString() {
        return "ThreadPoolConfig(corePoolSize=" + this.getCorePoolSize() + ", maximumPoolSize=" + this.getMaximumPoolSize() + ", keepAliveTime=" + this.getKeepAliveTime() + ")";
    }
}
